package com.tastesport.chat.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tastesport.chat.model.Broadcast;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface BroadcastMapper extends BaseMapper<Broadcast> {
    @Select("select id,content,time from chat_broadcast where way=0")
    List<Broadcast> usingBro();
}
